package com.senlingspace.system.domain;

import com.senlingspace.common.annotation.Excel;
import com.senlingspace.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 分账比例设置-门店运营商关系对象 slkj_shop_operate
 * 
 * @author wangliang
 * @date 2024-07-15
 */
@Data
public class SlkjShopOperate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 门店Id */
    @Excel(name = "门店Id")
    private Long shopId;

    /** 运营商id */
    @Excel(name = "运营商id")
    private Long operateId;

    /** 是否回本 */
    @Excel(name = "是否回本")
    private String isPrincipal;

    /** 回本前分账比例 */
    @Excel(name = "回本前分账比例")
    private BigDecimal investorBefore;

    /** 回本后分账比例 */
    @Excel(name = "回本后分账比例")
    private BigDecimal investorAfter;

    /** 删除表示（0代表存在 1代表删除） */
    private String delFlag;

    /** 当前分账比例 */
    private BigDecimal currentShareRatio;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shopId", getShopId())
            .append("operateId", getOperateId())
            .append("isPrincipal", getIsPrincipal())
            .append("investorBefore", getInvestorBefore())
            .append("investorAfter", getInvestorAfter())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("currentShareRatio", getCurrentShareRatio())
            .toString();
    }
}
